/******************************************************************************
 * The Initial Developer of the Original Code is luoyang
 * Copyright (C) tuwangang.
 * All parts are tuwangang.  All Rights Reserved.
 *****************************************************************************/

package com.maywide.jdp.core.vo;

import java.util.List;

import com.google.gson.annotations.Expose;

/**
 * 查询结果类
 * 含查询的总数量和当前页的数据列表
 * 
 * @author luoyang
 */
public class Page {
	/**
	 * 总记录数
	 */
	@Expose
	private long total=0;
	
	/**
	 * 当前数据
	 */
	@SuppressWarnings("rawtypes")
	@Expose
	private List data=null;

	@SuppressWarnings("rawtypes")
	public Page(long total, List data) {
		this.total = total;
		this.data = data;
	}

	/**
	 * @return the total
	 */
	public long getTotal() {
		return total;
	}

	/**
	 * @return the data
	 */
	@SuppressWarnings("rawtypes")
	public List getData() {
		return data;
	}
}
